package com.gjh.study.algorithm4.evaluate;

import edu.princeton.cs.algs4.Stack;

public class MinusHandler implements OpsHandler{
    @Override
    public Double calculate(Stack<Double> valStack) {
        Double second = valStack.pop();
        return valStack.pop() - second;
    }
}
